home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
FM Towns: Free Software Collection 7
/
FM Towns Free Software Collection 7.iso
/
taropyon
/
guilib3
/
inc
/
eventcf.h
< prev
next >
Wrap
C/C++ Source or Header
|
1993-11-30
|
950b
|
46 lines
#ifndef _EVENTCF_H
#define _EVENTCF_H
#ifndef _SPDEFS_H
# include <spdefs.h>
#endif
#ifndef _EVENT_H
# include <event.h>
#endif
/* マウスイベント マスク範囲設定用 */
typedef struct _evtmsk
{ struct _evtmsk *next;
FRAME fr;
} EVTMSK_T;
extern IDL_T *RootIdl;
extern char _EvtSttDsp;
extern EVTMSK_T *MosEvtMsk;
#define IDLFUNC(c) ((void (*)(clock_t))(c))
#define EVTFUNC(c) ((int (*)(int, EVT_SBJ *))(c))
typedef struct
{
void (*func)();
void *ptr;
struct
{ int btn, x, y;
} mos;
struct
{ UINT ch, ec;
} key;
} _ECPARA;
extern int _evt_callFunc ( EVTSBJ_T *sbj, _ECPARA *ecp );
extern int _evt_chk_mos ( EVTSBJ_T *sbj, _ECPARA *ecp );
extern int _evt_chk_key ( EVTSBJ_T *sbj, _ECPARA *ecp );
extern int _evt_chk_keyTbl( EVTSBJ_T *sbj, _ECPARA *ecp );
#define EVTKEY_PFX_CMD (0xFFFF_FFFF)
#define EVTKEY_HASH_POS(_ec) (((((USHORT)(_ec))>>8)*31)&(EVTKEY_HASH_MAX-1))
#endif